package Server;
/*comment about file*/
/**
 * @author David
 * @version $Revision: 1.0 $
 */
public class Invoice {
	
	/**
	 * Field appt.
	 */
	private Appointments appt;
	
	/**
	 * Constructor for Invoice.
	 * @param appt Appointments
	 */
	protected Invoice(Appointments appt){
		this.appt = appt;
	}
	
	/**
	 * Constructor for Invoice.
	 */
	public Invoice(){
		System.out.println("Invoice");
	}
	
	/**
	 * toString method for the invoice
	
	 * @return String */
	public String toString(){
		return("Patient Name: " + appt.getName() + "\n" + "Date of Visit: "
				+ appt.getMonth() + "-" + appt.getDay() + "-" + appt.getYear() + "\n"
				+ "Doctor: " + appt.getDoctor() + "\n" + "Price: " + appt.getPrice());
	}

}
